package com.xuxk.project.oauth.dto;
import java.util.ArrayList;
import java.util.List;

/**
 * Model class for XuxkUser. Add not database mapped fileds in this class.
 * @author 橙云科技有限公司
 */
public class XuxkUserDto{

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public XuxkUserDto() {
        oredCriteria = new ArrayList<Criteria>();
    }
    
    public XuxkUserDto(XuxkUserDto other) {
		this.distinct = other.distinct;
		this.orderByClause = other.orderByClause;
		this.oredCriteria = other.oredCriteria;
	}

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }
    
    protected abstract static class AbstractGeneratedCriteria {
        protected List<Criterion> criteria;

        protected AbstractGeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }
        
        
	        public Criteria andIdIsNull() {
	            addCriterion("id is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdIsNotNull() {
	            addCriterion("id is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdEqualTo(Integer value) {
	            addCriterion("id =", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotEqualTo(Integer value) {
	            addCriterion("id <>", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdGreaterThan(Integer value) {
	            addCriterion("id >", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
	            addCriterion("id >=", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdLessThan(Integer value) {
	            addCriterion("id <", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdLessThanOrEqualTo(Integer value) {
	            addCriterion("id <=", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdIn(List<Integer> values) {
	            addCriterion("id in", values, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotIn(List<Integer> values) {
	            addCriterion("id not in", values, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdBetween(Integer value1, Integer value2) {
	            addCriterion("id between", value1, value2, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotBetween(Integer value1, Integer value2) {
	            addCriterion("id not between", value1, value2, "id");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andUserNameIsNull() {
	            addCriterion("user_name is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameIsNotNull() {
	            addCriterion("user_name is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameEqualTo(String value) {
	            addCriterion("user_name =", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameNotEqualTo(String value) {
	            addCriterion("user_name <>", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameGreaterThan(String value) {
	            addCriterion("user_name >", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameGreaterThanOrEqualTo(String value) {
	            addCriterion("user_name >=", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameLessThan(String value) {
	            addCriterion("user_name <", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameLessThanOrEqualTo(String value) {
	            addCriterion("user_name <=", value, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameIn(List<String> values) {
	            addCriterion("user_name in", values, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameNotIn(List<String> values) {
	            addCriterion("user_name not in", values, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameBetween(String value1, String value2) {
	            addCriterion("user_name between", value1, value2, "userName");
	            return (Criteria) this;
	        }
	
	        public Criteria andUserNameNotBetween(String value1, String value2) {
	            addCriterion("user_name not between", value1, value2, "userName");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andLoginAccountIsNull() {
	            addCriterion("login_account is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountIsNotNull() {
	            addCriterion("login_account is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountEqualTo(String value) {
	            addCriterion("login_account =", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountNotEqualTo(String value) {
	            addCriterion("login_account <>", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountGreaterThan(String value) {
	            addCriterion("login_account >", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountGreaterThanOrEqualTo(String value) {
	            addCriterion("login_account >=", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountLessThan(String value) {
	            addCriterion("login_account <", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountLessThanOrEqualTo(String value) {
	            addCriterion("login_account <=", value, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountIn(List<String> values) {
	            addCriterion("login_account in", values, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountNotIn(List<String> values) {
	            addCriterion("login_account not in", values, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountBetween(String value1, String value2) {
	            addCriterion("login_account between", value1, value2, "loginAccount");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginAccountNotBetween(String value1, String value2) {
	            addCriterion("login_account not between", value1, value2, "loginAccount");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andLoginPwIsNull() {
	            addCriterion("login_pw is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwIsNotNull() {
	            addCriterion("login_pw is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwEqualTo(String value) {
	            addCriterion("login_pw =", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwNotEqualTo(String value) {
	            addCriterion("login_pw <>", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwGreaterThan(String value) {
	            addCriterion("login_pw >", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwGreaterThanOrEqualTo(String value) {
	            addCriterion("login_pw >=", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwLessThan(String value) {
	            addCriterion("login_pw <", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwLessThanOrEqualTo(String value) {
	            addCriterion("login_pw <=", value, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwIn(List<String> values) {
	            addCriterion("login_pw in", values, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwNotIn(List<String> values) {
	            addCriterion("login_pw not in", values, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwBetween(String value1, String value2) {
	            addCriterion("login_pw between", value1, value2, "loginPw");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginPwNotBetween(String value1, String value2) {
	            addCriterion("login_pw not between", value1, value2, "loginPw");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andEmailIsNull() {
	            addCriterion("email is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailIsNotNull() {
	            addCriterion("email is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailEqualTo(String value) {
	            addCriterion("email =", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailNotEqualTo(String value) {
	            addCriterion("email <>", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailGreaterThan(String value) {
	            addCriterion("email >", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailGreaterThanOrEqualTo(String value) {
	            addCriterion("email >=", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailLessThan(String value) {
	            addCriterion("email <", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailLessThanOrEqualTo(String value) {
	            addCriterion("email <=", value, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailIn(List<String> values) {
	            addCriterion("email in", values, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailNotIn(List<String> values) {
	            addCriterion("email not in", values, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailBetween(String value1, String value2) {
	            addCriterion("email between", value1, value2, "email");
	            return (Criteria) this;
	        }
	
	        public Criteria andEmailNotBetween(String value1, String value2) {
	            addCriterion("email not between", value1, value2, "email");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andUStatusIsNull() {
	            addCriterion("u_status is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusIsNotNull() {
	            addCriterion("u_status is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusEqualTo(Integer value) {
	            addCriterion("u_status =", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusNotEqualTo(Integer value) {
	            addCriterion("u_status <>", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusGreaterThan(Integer value) {
	            addCriterion("u_status >", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusGreaterThanOrEqualTo(Integer value) {
	            addCriterion("u_status >=", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusLessThan(Integer value) {
	            addCriterion("u_status <", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusLessThanOrEqualTo(Integer value) {
	            addCriterion("u_status <=", value, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusIn(List<Integer> values) {
	            addCriterion("u_status in", values, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusNotIn(List<Integer> values) {
	            addCriterion("u_status not in", values, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusBetween(Integer value1, Integer value2) {
	            addCriterion("u_status between", value1, value2, "uStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andUStatusNotBetween(Integer value1, Integer value2) {
	            addCriterion("u_status not between", value1, value2, "uStatus");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andPhoneIsNull() {
	            addCriterion("phone is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneIsNotNull() {
	            addCriterion("phone is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneEqualTo(String value) {
	            addCriterion("phone =", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneNotEqualTo(String value) {
	            addCriterion("phone <>", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneGreaterThan(String value) {
	            addCriterion("phone >", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
	            addCriterion("phone >=", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneLessThan(String value) {
	            addCriterion("phone <", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneLessThanOrEqualTo(String value) {
	            addCriterion("phone <=", value, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneIn(List<String> values) {
	            addCriterion("phone in", values, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneNotIn(List<String> values) {
	            addCriterion("phone not in", values, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneBetween(String value1, String value2) {
	            addCriterion("phone between", value1, value2, "phone");
	            return (Criteria) this;
	        }
	
	        public Criteria andPhoneNotBetween(String value1, String value2) {
	            addCriterion("phone not between", value1, value2, "phone");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andCreateTimeIsNull() {
	            addCriterion("create_time is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeIsNotNull() {
	            addCriterion("create_time is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeEqualTo(java.util.Date value) {
	            addCriterion("create_time =", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeNotEqualTo(java.util.Date value) {
	            addCriterion("create_time <>", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeGreaterThan(java.util.Date value) {
	            addCriterion("create_time >", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeGreaterThanOrEqualTo(java.util.Date value) {
	            addCriterion("create_time >=", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeLessThan(java.util.Date value) {
	            addCriterion("create_time <", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeLessThanOrEqualTo(java.util.Date value) {
	            addCriterion("create_time <=", value, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeIn(List<java.util.Date> values) {
	            addCriterion("create_time in", values, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeNotIn(List<java.util.Date> values) {
	            addCriterion("create_time not in", values, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeBetween(java.util.Date value1, java.util.Date value2) {
	            addCriterion("create_time between", value1, value2, "createTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andCreateTimeNotBetween(java.util.Date value1, java.util.Date value2) {
	            addCriterion("create_time not between", value1, value2, "createTime");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andLoginTimeIsNull() {
	            addCriterion("login_time is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeIsNotNull() {
	            addCriterion("login_time is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeEqualTo(java.util.Date value) {
	            addCriterion("login_time =", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeNotEqualTo(java.util.Date value) {
	            addCriterion("login_time <>", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeGreaterThan(java.util.Date value) {
	            addCriterion("login_time >", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeGreaterThanOrEqualTo(java.util.Date value) {
	            addCriterion("login_time >=", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeLessThan(java.util.Date value) {
	            addCriterion("login_time <", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeLessThanOrEqualTo(java.util.Date value) {
	            addCriterion("login_time <=", value, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeIn(List<java.util.Date> values) {
	            addCriterion("login_time in", values, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeNotIn(List<java.util.Date> values) {
	            addCriterion("login_time not in", values, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeBetween(java.util.Date value1, java.util.Date value2) {
	            addCriterion("login_time between", value1, value2, "loginTime");
	            return (Criteria) this;
	        }
	
	        public Criteria andLoginTimeNotBetween(java.util.Date value1, java.util.Date value2) {
	            addCriterion("login_time not between", value1, value2, "loginTime");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andSysCodeTypeIsNull() {
	            addCriterion("sys_code_type is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeIsNotNull() {
	            addCriterion("sys_code_type is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeEqualTo(String value) {
	            addCriterion("sys_code_type =", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeNotEqualTo(String value) {
	            addCriterion("sys_code_type <>", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeGreaterThan(String value) {
	            addCriterion("sys_code_type >", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeGreaterThanOrEqualTo(String value) {
	            addCriterion("sys_code_type >=", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeLessThan(String value) {
	            addCriterion("sys_code_type <", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeLessThanOrEqualTo(String value) {
	            addCriterion("sys_code_type <=", value, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeIn(List<String> values) {
	            addCriterion("sys_code_type in", values, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeNotIn(List<String> values) {
	            addCriterion("sys_code_type not in", values, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeBetween(String value1, String value2) {
	            addCriterion("sys_code_type between", value1, value2, "sysCodeType");
	            return (Criteria) this;
	        }
	
	        public Criteria andSysCodeTypeNotBetween(String value1, String value2) {
	            addCriterion("sys_code_type not between", value1, value2, "sysCodeType");
	            return (Criteria) this;
	        }
        
                
     }

    public static class Criteria extends AbstractGeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}